package com.czr.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 回复表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="czr_reply对象", description="回复")
public class CzrReplyParam extends Model<CzrReplyParam> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论")
    @NotEmpty(message = "评论不能为空！")
    @TableField("comment")
    private String comment;

    @ApiModelProperty(value = "帖子id(如回复帖子 传帖子id)")
    @TableField("postId")
    private Integer postId;


    @ApiModelProperty(value = "评论回复id (如回复评论 传回复评论id)")
    @TableField("replyId")
    private Integer replyId;


}
